package io.renren.modules.backstage.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class CameraBean implements Serializable {
    private static final long serialVersionUID = 8183688502930584159L;

    @NotEmpty(message = "不能为空")
    @ApiModelProperty(value = "摄像头ip",required = true)
    private String cameraIp;

    @NotEmpty(message = "不能为空")
    @ApiModelProperty(value = "账号",required = true)
    private String cameraAccount;

    @NotEmpty(message = "不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String cameraPassword;

    @ApiModelProperty(value = "rtsp地址",hidden = true)
    private String rtsp;

    @ApiModelProperty(value = "rtmp地址",hidden = true)
    private String rtmp;

    @ApiModelProperty(value = "打开时间",hidden = true)
    private String openTime;

    @ApiModelProperty(value = "使用人数",hidden = true)
    private int count = 0;

    @ApiModelProperty(value = "token",hidden = true)
    private String token;
}
